package org.fight;

import akka.actor.ActorRef;
import akka.actor.ActorSelection;
import akka.actor.ActorSystem;

/**
 * @author : DengYing
 * @CreateDate : 2017年11月6日 上午10:53:20
 * @Description ：Please describe this document
 */
public class Test {
	public static void main(String[] args) {
//		Props p = Props.create(HelloWorld.class);
		ActorSystem system = ActorSystem.create("testSystem");
		ActorRef firstRef = system.actorOf(HelloWorld.props() , "first-actor");
		
		ActorSelection i = system.actorSelection("akka://testSystem/user/10000010");
		System.out.println(i);
//		system.ac
////		firstRef.tell("stop", ActorRef.noSender());
//		system.stop(firstRef);
	}
}
